From 8e88298521656f9c6dfd8f0aeb2aa675ccfb40f0 Mon Sep 17 00:00:00 2001 From: Camm Maguire Date: Sun, 8 Dec 2019 19:27:24 +0000 Subject: [PATCH] list_order.13 Gbp-Pq: Name list_order.13 --- h/elf32_mips_reloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h/elf32_mips_reloc.h b/h/elf32_mips_reloc.h index 629f2f54..8346d264 100644 --- a/h/elf32_mips_reloc.h +++ b/h/elf32_mips_reloc.h @@ -35,7 +35,7 @@ if (a) add_vals(where,MASK(16),(s>>16)+a); break; case R_MIPS_LO16: - if (sym->st_other) s=gpd; + if (sym->st_other) s=gpd ? gpd : ({massert(sym->st_other==2);(ul)got;}); a=*where&MASK(16); if (a&0x8000) a|=0xffff0000; a+=s&MASK(16); -- 2.30.2